<!DOCTYPE HTML PUBLIC "-//SoftQuad Software//DTD HoTMetaL PRO 6.0::19990601::extensions to HTML 4.0//EN" "hmpro6.dtd">
<HTML>
  <HEAD>
	 <TITLE>Test Menu</TITLE> <SCRIPT>
 var xDT = parent.xDT;
 var left = 0;
 var top = 0;
 var pos = 'test:R:10';
 function OpenUrl(url,p,w,h) {
  //if (url == "http://" || url == "") {alert("invalid URL"); return false; }
  if (url == "") {alert("invalid URL"); return false; }
  var win = xDT.addWindow("",url,w,h,p,0);
  if (win.match(/^w/)) {
   //setTimeout("xDT.url('" + win + "','" + url + "')",250);
   xDT.url(win,url);
   xDT.show(win);
   left = xDT.prop(win,"wX") + 30;
   top = xDT.prop(win,"wY") + 30;
   pos = left + "," + top;
  }
  else alert("Unknow window: " + win);
  return false;
 }

 parent.LOADED = 1;
</SCRIPT>
  </HEAD>
    <BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0"	BGCOLOR="#ffffff">
<?php
$fd=opendir("Applications/");
while (false !== ($nf= readdir($fd))){
    if ($nf[0]!='.' && $nf[0]!='_'  )
	echo"<input type='button' value='".$nf."' style=\"width:100%;\" onclick=\"OpenUrl('Applications/$nf','R:10',530,400)\">\n";
}
closedir($fd);
?>

    </BODY>
</HTML>
